/*
 * @Description:
 * @Date: 2024-07-05 09:10:40
 * @LastEditTime: 2024-07-20 16:42:49
 */
import { http } from '@/utils/http'

// 获得景点列表
export const getAttractionsPage = (data, query) => {
  return http({
    url: `/app-api/countryside/visitor_center/getScenicPointPage`,
    method: 'POST',
    data,
    query,
  })
}

// 创建景点
export const cerateAttractions = (data) => {
  return http({
    url: `/admin-api/countryside/visitorCenter/createScenicPoint`,
    method: 'POST',
    data,
  })
}

// 编辑景点
export const updateAttractions = (data) => {
  return http({
    url: `/admin-api/countryside/visitorCenter/updateScenicPoint`,
    method: 'PUT',
    data,
  })
}
// 删除景点
export const deleteAttractions = (query) => {
  return http({
    url: '/admin-api/countryside/visitorCenter/delete',
    method: 'DELETE',
    query,
  })
}
// 获得景点详情
export const getAttractionsDetails = (id) => {
  return http({
    url: '/app-api/countryside/visitor_center/getScenicPoint?id=' + id,
    method: 'GET',
  })
}
